package org.xg.study.spring.al.service.impl;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.xg.study.spring.al.dao.UserDao;
import org.xg.study.spring.al.pojo.Users;
import org.xg.study.spring.al.service.IUserService;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName UserServiceImpl
 * @date 2021/10/25 15:56
 **/
@Service
@Component
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserDao userDao;

    @Override
    public Users userInfo(String name) {
        Users user = new Users();
        user.setUsername("admin");
        user.setPassword("123456");
        return user;
        //return userDao.getUsers(username);
    }
}
